package dao;

import java.util.List;
import model.User;
public interface UserDao{
	public boolean insertUser(User user)throws Exception;
	public boolean updateUser(User user)throws Exception;
	public boolean deleteUser(User user)throws Exception;
	public List<User> findAll()throws Exception;
	public User findById(int Id)throws Exception;
	public User findByName(String name)throws Exception;
	public boolean IsName(String name)throws Exception;
	public void rsClose() throws Exception;
    public void stateClose() throws Exception;
}

